const publicMethods = require("../../utils/publicMethods");
const app = getApp();
Page({
  getUserInfo(e) {
    let res = e.detail.userInfo;
    if(res) {
      publicMethods.updateUserInfo(app, () => {
        wx.switchTab({
          url: '/pages/page1/page1',
        })
      });
    }
  }
})